<?php htmlTemplate('admin_header_frame.php');?>
<div class="title">权限设置
<a  href="<?php echo MVC_WWW_HOST.'admin.php/admin/home/user/'?>" class="title_button">用户列表</a>
</div>
<table width="100%" cellspacing="1" cellpadding="3" id="listTable">
  <tbody>
  
  <?php  
echo $menu;
  ?>
  <tr><td>
  <input type="button" value="保 存" onclick="saveRole()">
  </td></tr>
  </tbody>
</table>
<?php htmlTemplate('admin_footer_frame.php');?>
<script>
function  saveRole()
{
	
	var items = getCheckItems();	
	var url="<?php echo MVC_WWW_HOST.'admin.php/admin/home/roleset/do/save/id/'.Http::get('id').'/role/';?>"+items;
	
	$.getJSON(url,function(rs){
		parent.showAlert(rs.html);
	})
}
</script>